GPASMFLAGS = -p 18f4685

all: cleanall main.hex

%.hex: %.asm
	gpasm $(GPASMFLAGS) $<

clean:
	rm -f *.cod *.lst *.err

cleanall: clean
	rm -f *.hex
